/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Configuracion}.
 * </p>
 *
 * @author    tito
 * @see       Configuracion
 * @generated
 */
public class ConfiguracionWrapper implements Configuracion,
	ModelWrapper<Configuracion> {
	public ConfiguracionWrapper(Configuracion configuracion) {
		_configuracion = configuracion;
	}

	public Class<?> getModelClass() {
		return Configuracion.class;
	}

	public String getModelClassName() {
		return Configuracion.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("name", getName());
		attributes.put("value", getValue());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		String name = (String)attributes.get("name");

		if (name != null) {
			setName(name);
		}

		String value = (String)attributes.get("value");

		if (value != null) {
			setValue(value);
		}
	}

	/**
	* Returns the primary key of this Configuracion.
	*
	* @return the primary key of this Configuracion
	*/
	public java.lang.String getPrimaryKey() {
		return _configuracion.getPrimaryKey();
	}

	/**
	* Sets the primary key of this Configuracion.
	*
	* @param primaryKey the primary key of this Configuracion
	*/
	public void setPrimaryKey(java.lang.String primaryKey) {
		_configuracion.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the name of this Configuracion.
	*
	* @return the name of this Configuracion
	*/
	public java.lang.String getName() {
		return _configuracion.getName();
	}

	/**
	* Sets the name of this Configuracion.
	*
	* @param name the name of this Configuracion
	*/
	public void setName(java.lang.String name) {
		_configuracion.setName(name);
	}

	/**
	* Returns the value of this Configuracion.
	*
	* @return the value of this Configuracion
	*/
	public java.lang.String getValue() {
		return _configuracion.getValue();
	}

	/**
	* Sets the value of this Configuracion.
	*
	* @param value the value of this Configuracion
	*/
	public void setValue(java.lang.String value) {
		_configuracion.setValue(value);
	}

	public boolean isNew() {
		return _configuracion.isNew();
	}

	public void setNew(boolean n) {
		_configuracion.setNew(n);
	}

	public boolean isCachedModel() {
		return _configuracion.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_configuracion.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _configuracion.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _configuracion.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_configuracion.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _configuracion.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_configuracion.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new ConfiguracionWrapper((Configuracion)_configuracion.clone());
	}

	public int compareTo(slcu.model.Configuracion configuracion) {
		return _configuracion.compareTo(configuracion);
	}

	@Override
	public int hashCode() {
		return _configuracion.hashCode();
	}

	public com.liferay.portal.model.CacheModel<slcu.model.Configuracion> toCacheModel() {
		return _configuracion.toCacheModel();
	}

	public slcu.model.Configuracion toEscapedModel() {
		return new ConfiguracionWrapper(_configuracion.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _configuracion.toString();
	}

	public java.lang.String toXmlString() {
		return _configuracion.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_configuracion.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Configuracion getWrappedConfiguracion() {
		return _configuracion;
	}

	public Configuracion getWrappedModel() {
		return _configuracion;
	}

	public void resetOriginalValues() {
		_configuracion.resetOriginalValues();
	}

	private Configuracion _configuracion;
}